import bblosReq from '../configRequest/index'

// 查询样品指标列表
export function listNorm(query) {
  return bblosReq.request({
    url: '/simple/norm/list',
    method: 'get',
    params: query
  })
}

// 查询样品指标详细
export function getNorm(simpleNormId) {
  return bblosReq.request({
    url: '/simple/norm/' + simpleNormId,
    method: 'get'
  })
}

// 新增样品指标
export function addNorm(data) {
  return bblosReq.request({
    url: '/simple/norm',
    method: 'post',
    data: data
  })
}

// 修改样品指标
export function updateNorm(data) {
  return bblosReq.request({
    url: '/simple/norm',
    method: 'put',
    data: data
  })
}

// 删除样品指标
export function delNorm(simpleNormId) {
  return bblosReq.request({
    url: '/simple/norm/' + simpleNormId,
    method: 'delete'
  })
}

// 导出样品指标
export function exportNorm(query) {
  return bblosReq.request({
    url: '/simple/norm/export',
    method: 'get',
    params: query
  })
}